package cn.edu.cimv.service.impl;

import cn.edu.cimv.dao.entity.Recruit;
import cn.edu.cimv.dao.mapper.RecruitMapper;
import cn.edu.cimv.service.RecruitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by 门铎 on 2016/6/27.
 */
@Service
public class RecruitServiceImpl implements RecruitService {
    @Autowired private RecruitMapper recruitMapper;
    @Override
    public void editRecruit(Recruit recruit) {
        recruitMapper.insertRecruit(recruit);
    }

    @Override
    public List<Recruit> queryRecruit() {
        return recruitMapper.queryRecruit();
    }

    @Override
    public void deleteRecruit(int id) {
        recruitMapper.deleteRecruit(id);
    }

    @Override
    public Recruit queryRecruitById(int id) {
        return recruitMapper.queryRecruitById(id);
    }

    @Override
    public void updateRecruit(Recruit recruit) {
        recruitMapper.updateRecruit(recruit);
    }
}
